<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2016/7/8 0008
  Time: 17:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="paging" uri="paging-taglib" %>
<%@ taglib prefix="pagingL" uri="paging-taglib" %>
<html>
<head>
    <title>账户明细</title>
</head>
<body>
<div class="navigation">
    <div class="crumbs ">
        <i class="tm-iconfont icon-info"></i>
        <a href="${ctx}/main">卖家中心</a><span>&gt;</span><a href="${ctx}/user/account_details">我的钱包</a><span>&gt;</span>账户明细
    </div>
    <div class="help">
        <a href="#" target="_blank">卖家交易学习专区</a>
    </div>
</div>
<div class="c oh">
    <!--star 关键统计-->
    <div class="mtc_box line-all b-F5F5F5">
        <div class="mt line-bottom p-lr10 fs14">钱包简报</div>
        <!--mc star-->
        <div class="mc b-FFFFFF p10">
            <ul class="u_keyStat ukt_2 tac fs14 p-tb30">
                <li>
                    <div class="item">
                        <div class="c-666666 fwb">${user.accountBalance}</div>
                        <div>账户余额</div>
                    </div>
                </li>
                <li>
                    <div class="item">
                        <div class="c-666666 fwb">${user.accountBalance}</div>
                        <div>可提现金额<a class="c-3399ff p-l20" href="${ctx}/user/withdraw">提现</a></div>
                    </div>
                </li>
                <li>
                    <div class="item not_item">
                        <div class="c-666666 fwb">10000</div>
                        <div>总销售额</div>
                    </div>
                </li>
            </ul>
        </div>
        <!--mc end-->
    </div>
    <!--end 关键统计-->
    <!--star 选项统计-->
    <div class="mtc_tab m-t10" id="menu_tab">
        <div class="mt">
            <a href="${ctx}/user/account_details">账户明细</a>
            <a href="${ctx}/user/withdrawals_recording">提现记录</a>
        </div>
        <div class="mc">
            <div class="item hide">
                <!--star 提现记录-->
                <div class="u_table_list table003 m-t20 line-all">
                    <table>
                        <colgroup>
                            <col width="30%">
                            <col width="20%">
                            <col width="30%">
                            <col width="20%">
                        </colgroup>
                        <tr>
                            <th>时间</th>
                            <th>金额</th>
                            <th>状态</th>
                            <th>余额</th>
                        </tr>
                        <c:forEach var="item" items="${userWithdrawalsRecordPageList}">
                            <tr>
                                <td class="tal"><fmt:formatDate value="${item.createOn}" pattern="yyyy-MM-dd"/></td>
                                <td class="tal not_lb">${item.cashWithdrawalAmount}</td>
                                <td class="tal not_lb"><c:choose>
                                    <c:when test="${item.status == 0}">
                                        审核中
                                    </c:when>
                                    <c:when test="${item.status == 2}">
                                        审核通过
                                    </c:when>
                                    <c:when test="${item.status == 3}">
                                        审核不通过
                                    </c:when>
                                </c:choose></td>
                                <td class="tal not_lb">${item.accountBalance}</td>
                            </tr>
                        </c:forEach>
                    </table>

                </div>
                <!--end 提现记录-->
            </div>

        </div>

    </div>
    <script type="text/javascript">
        $.Dashentab("#menu_tab .mt", "a", "#menu_tab .mc", "div.item", "curr", "click", "0");
    </script>
    <%--<script type="text/javascript">--%>
        <%--$.Dashentab("#menu_tab .mt", "a", "#menu_tab .mc", "div.item", "curr", "click", "0");--%>
    <%--</script>--%>
    <div style="padding:20px; text-align:right;" class="pages">
        <pagingL:paging pageIndex="${pageIndex}" totalPage="${pageIndex}" href="${ctx}/user/withdrawals" htmlTag="li"></pagingL:paging>
    </div>
</div>

</body>
</html>
